package t211124;

/**
 * @Author: DengJia
 * @Date: 2021/11/24 19:49
 * @Description:
 */

public class MainTest {
    public static void main(String[] args) {
        Super sup = new Sub();
        System.out.println("sup.field = " + sup.field + ", sup.getField() = " + sup.getField());

        Sub sub = new Sub();
        System.out.println("sub.field = " + sub.field + ", sub.getField() = " + sub.getField() + ", sub.getSuperField() = " + sub.getSuperField());

    }
}
